plugins 	= hello robot m4 script hist cqd beep 
target 		= libplugins.a 

all: 
	@for i in $(plugins); do \
		$(MAKE) -C $$i; \
	done;
	@$(AR) -cr $(target) *.o 
	@echo -e "AR\t\t\t$(target)"

.PHONY clean: 
	for i in $(plugins); do \
		$(MAKE) -C $$i clean; \
	done;
	rm $(target) -f 

